package robocup.component.infotypes;

/**
 * This class refers to a seen flag by a player agent, i.e. the info that is
 * forwarded from the parser.
 */
public class FlagInfo
    extends VisualObjectInfo {

  /**
   * Default constructor for a flag - this is a marker on the field, which is
   * perceived to estimate the own position
   * 
   * @param cycle
   *          Cycle of the flag
   * @param iId
   *          Id of the flag
   * @param iDistance
   *          Distance to the flag
   * @param iDirection
   *          Direction of the flag
   */
  public FlagInfo(
      final int cycle,
      final int iId,
      final double iDistance,
      final double iDirection) {

    super(cycle, iId, iDistance, iDirection);
  }

  /**
   * Returns the debug-String of the Object
   * 
   * @return String representation of the Object
   * @see robocup.component.infotypes.Infos#print()
   */
  @Override
  public String toString() {

    return ("Seen: " + this.getId() + ", " + this.distance + ", " + this.direction);
  }
}